package com.ruoyi.pims.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 采购分析主对象 ry_purchase_analysis
 * 
 * @author ruoyi
 * @date 2025-06-18
 */
public class RyPurchaseAnalysis extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 分析ID */
    private Long analysisId;

    /** 期间编码 */
    @Excel(name = "期间编码")
    private String periodCode;

    /** 采购总支出 */
    @Excel(name = "采购总支出")
    private BigDecimal totalExpense;

    /** 物料种类数 */
    @Excel(name = "物料种类数")
    private Long materialCount;

    /** 供应商数量 */
    @Excel(name = "供应商数量")
    private Long supplierCount;

    public void setAnalysisId(Long analysisId) 
    {
        this.analysisId = analysisId;
    }

    public Long getAnalysisId() 
    {
        return analysisId;
    }

    public void setPeriodCode(String periodCode) 
    {
        this.periodCode = periodCode;
    }

    public String getPeriodCode() 
    {
        return periodCode;
    }

    public void setTotalExpense(BigDecimal totalExpense) 
    {
        this.totalExpense = totalExpense;
    }

    public BigDecimal getTotalExpense() 
    {
        return totalExpense;
    }

    public void setMaterialCount(Long materialCount) 
    {
        this.materialCount = materialCount;
    }

    public Long getMaterialCount() 
    {
        return materialCount;
    }

    public void setSupplierCount(Long supplierCount) 
    {
        this.supplierCount = supplierCount;
    }

    public Long getSupplierCount() 
    {
        return supplierCount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("analysisId", getAnalysisId())
            .append("periodCode", getPeriodCode())
            .append("totalExpense", getTotalExpense())
            .append("materialCount", getMaterialCount())
            .append("supplierCount", getSupplierCount())
            .append("createTime", getCreateTime())
            .toString();
    }
}
